Crate rspack_core
source ·Re-exports§
pub use rspack_sources;
pub use external_module::*;
pub use concatenated_module::*;
pub use module::*;
pub use parser_and_generator::*;
pub use resolver::*;
Modules§
- There are methods whose verb is
ChunkGraphChunk
- There are methods whose verb is
ChunkGraphModule
Macros§
Structs§
- https://github.com/webpack/webpack/blob/ac7e531436b0d47cd88451f497cdfd0dad41535d/lib/ModuleGraph.js#L742-L748
- Using
u32
instead ofusize
to reduce memory usage,u32
is 4 bytes on 64bit machine, comparing tousize
which is 8 bytes. - Filename template string or function
- A
never
type of filename function. It marks the filename as template string only. - Tsconfig Options
Enums§
- Note: This type implements
Serailize
andDeserialize
ifserde
is enabled, instead of requiringserde-impl
feature. - refer https://github.com/webpack/webpack/blob/d15c73469fd71cf98734685225250148b68ddc79/lib/FlagDependencyUsagePlugin.js#L64
Constants§
Statics§
Traits§
- The default filename fn trait.
- The minimum requirement for a filename fn.
Functions§
- level order, the impl is different from webpack, since we can’t iterate a set and mutate it at the same time.
- Fast set
src
into the referenceddest
, and drop the old value in other thread - join string component in a more human readable way e.g.
- assert the runtime condition is not
False
- Match the
ModuleRule
against the givenResourceData
, and return the matchingModuleRule
if matched. - InitFragment.addToSource
Type Aliases§
- Filename template string. No function allowed.